package ex41212;

import java.io.*;

/**
 * @AUTHOR 尹书岿
 * @DATE 2024/12/12 13:15
 * @DESCRIBE
 */
public class main2 {
    public static void main(String[] args) throws IOException {
        readFile();

    }

    private static void readFile() throws IOException {
        File file = new File("./src/main2.java");
        FileReader fileReader = new FileReader(file);
        BufferedReader bufferedReader = new BufferedReader(fileReader);
        String line = bufferedReader.readLine();
        while (line != null) {
            System.out.println(line);
            line = bufferedReader.readLine();
        }
        bufferedReader.close();
        fileReader.close();
    }
}
